package itsos.dao;


import org.springframework.orm.ibatis.support.*;
import java.util.*;

import itsos.model.*;




public class RepositoryDao extends SqlMapClientDaoSupport {
	
	
	
	
	public Repository getRepositoryByRepositoryID(long repositoryID)
	{
		return (Repository) getSqlMapClientTemplate().queryForObject("Repository.getRepositoryByRepositoryID", repositoryID);
				
	}
	
	public Repository getRepositoryByRevision(String revision)
	{
		return (Repository) getSqlMapClientTemplate().queryForObject("Repository.getRepositoryByRevision", revision);
	}
	
	public List getRepositoryByRepositoryGroup(long group)
	{
		return getSqlMapClientTemplate().queryForList("Repository.getRepositoryByRepositoryGroup", group);
	}
	
	
	public void insertRepository(Repository repository)
	{
		getSqlMapClientTemplate().insert("Repository.insertRepository", repository);
	}
	
	public void updateRepository(Repository repository)
	{
		getSqlMapClientTemplate().update("Repository.UpdateRepository",repository);
	}
	
	public List getRepository()
	{
		return getSqlMapClientTemplate().queryForList("Repository.getRepository");
	}

}
